package com.thesis.object;

/**
 * DishType class
 * 
 * save detail of Dish Type
 * 
 * @author NgocTuyen
 *
 */

public class DishType {
	//variable of detail of dish type
	private int id;
	private String name;
	
	/**
	 * Constructor function
	 * 
	 * Constructor
	 * 
	 * @access public
	 * 
	 * @param id: id of dish type
	 * @param name: name of dish type
	 * 
	 * @return null;
	 */
	public DishType(int id, String name){
		this.setId(id);
		this.setName(name);
	}
	
	/**
	 * getId function
	 * 
	 * get id of dish type
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return int
	 * + id of dish type
	 */
	public int getId() {
		return id;
	}
	
	/**
	 * setId function
	 * 
	 * set id of dish type
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @param id: id of dish type
	 * 
	 * @return null
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * getName function
	 * 
	 * get name of dish type
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return String
	 * + name of dish type
	 */
	public String getName() {
		return name;
	}

	/**
	 * getName function
	 * 
	 * set name of dish type
	 * 
	 * @access public
	 * 
	 * @param name: name of dish type
	 * 
	 * @return null
	 */
	public void setName(String name) {
		this.name = name;
	}
}
